package com.bird.pro.service;

import java.util.List;

import com.bird.pro.Page;
import com.bird.pro.Params;
import com.bird.pro.pojo.BirdPost;
import com.bird.pro.vo.PostVo;

public interface IPostService {

	public List<BirdPost> queryPosts();
	
	public List<BirdPost> queryPosts(Integer type, String title);
	
	public List<BirdPost> queryStickPosts(String province,String city);
	
	public Page queryPostVos(Params params);
	
	public BirdPost getPostById(Integer id);
	
	public PostVo getPostVoById(Integer id);
	
	public int savePost(BirdPost post);

	public int updatePost(BirdPost post);
	
	public int deletePost(Integer id);
}
